<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body>
    <span class="layui-breadcrumb" >
        <a ><cite><i class="fa fa-map-marker"></i><?=L('tpl_z_01')?></cite></a>
        <a href="javascript:;"><?=L('tpl_z_02')?></a>
        <a href="<?=site_url('sys/zu')?>"><?=L('tpl_z_03')?></a>
    </span>
    <table class="layui-table">
    	<thead>
    	<tr>
        <th><?=L('tpl_z_04')?></th>
        <th><?=L('tpl_z_05')?></th>
        <th><?=L('tpl_z_06')?></th>
        </tr>
        </thead>
        <tbody>
        <?php
        foreach ($adminzu as $row) {
            $mdf = '<span class="phide">'.L('tpl_z_07').'</span>';
            $edit=($row->id>1)?'<a class="layui-btn layui-btn-normal layui-btn-mini" href="'.site_url('sys/zu_edit/'.$row->id).'">'.$mdf.L('tpl_z_08'):'<a class="layui-btn layui-btn-normal layui-btn-mini" href="javascript:cscms.get_open(\''.site_url('sys/zu_edit/'.$row->id).'\',\''.L('tpl_z_09').'\',\'500px\',\'300px\')">'.$mdf.L('tpl_z_10');
    		$del=($row->id>1)?'<a class="layui-btn layui-btn-danger layui-btn-mini" href="javascript:cscms.del_one(\''.site_url('sys/zu_del/'.$row->id).'\','.$row->id.',\''.L('tpl_z_11').'\')">'.L('tpl_z_12').'</a>':'<a class="layui-btn layui-btn-mini layui-btn-disabled" href="javascript:;">'.L('tpl_z_12').'</a>';
            echo '
            <tr id="row_'.$row->id.'">
            <td>'.$row->id.'</td>
            <td>'.$row->name.'</td>
            <td>
    		    <a class="layui-btn layui-btn-mini" href="'.site_url('sys').'?sid='.$row->id.'">'.L('tpl_z_13').'</a>'.$edit.'</a>'.$del.'
            </td>
            </tr> ';
        }
        ?>
        </tbody>
    </table>
    <div class="more_func">
        <a class="layui-btn layui-btn-primary layui-btn-small" href="javascript:cscms.get_open('<?=site_url('sys/zu_add')?>','<?=L('tpl_z_14')?>','500px','300px');"><i class="fa fa-plus" style="color: #1E9FFF" ></i><?=L('tpl_z_14')?></a>
    </div>
    <script type="text/javascript">
        cscms.init();
    </script>
</body>
</html>
